<?php
	/*
	 * 赶集交友自动注册脚本
	 * 其实，每日赶集新注册的用户中并不都是赶集交友的用户，而新增的赶集交友的用户也不都是新注册的，所以这个注册的id仅仅起到一个参考的作用，不提供正式应用
	 * 
	 */
	include_once dirname(dirname(__FILE__))."/include/common.inc.php";
	include_once dirname(dirname(__FILE__))."/ganji/function.ganji.php";
	$global_site = "ganji";
	
	//自动注册赶集网id
	$new_ganji_id = registerGanjiId();
	if ($new_ganji_id) {
		printlog("success!! -- register ganji id success, new id : $new_ganji_id", "register");
		//自动保存新注册的id
		if(saveGanjiId($new_ganji_id)){
			printlog("success!! -- id $new_ganji_id saved into table success", "register");
		}
		else{
			printlog("fail!! -- id $new_ganji_id saved into table error", "register");
		}
	}
	else{
		printlog("fail!! -- register ganji id error ... ", "register");
	}
	

?>